/*
 * 1488_poj.cpp
 *
 *  Created on: 2012-5-28
 *      Author: jawinton
 */


#include <cstdio>

using namespace std;

int main (void) {
	char ch;
	bool b = true;
	while(scanf("%c", &ch) != EOF) {
		if(ch == '\"') {
			if (b)
				printf("``");
			else
				printf("''");
			b = !b;
		} else
			printf("%c", ch);
	}
	return 0;
}
